home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 February / PCWFEB08.iso / Software / Resources / Utilities / Partition Logic 0.68 / partlogic-0.68.iso / system / headers / sys / utsname.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-10  |  1.4 KB  |  46 lines

  1. // 
  2. //  Visopsys
  3. //  Copyright (C) 1998-2007 J. Andrew McLaughlin
  4. //  
  5. //  This library is free software; you can redistribute it and/or modify it
  6. //  under the terms of the GNU Lesser General Public License as published by
  7. //  the Free Software Foundation; either version 2.1 of the License, or (at
  8. //  your option) any later version.
  9. //
  10. //  This library is distributed in the hope that it will be useful, but
  11. //  WITHOUT ANY WARRANTY; without even the implied warranty of
  12. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
  13. //  General Public License for more details.
  14. //
  15. //  You should have received a copy of the GNU Lesser General Public License
  16. //  along with this library; if not, write to the Free Software Foundation,
  17. //  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. //
  19. //  utsname.h
  20. //
  21.  
  22. // This file is the Visopsys implementation of the standard <sys/utsname.h>
  23. // file found in Unix.
  24.  
  25. #if !defined(_UTSNAME_H)
  26.  
  27. #include <sys/network.h>
  28.  
  29. #define UTSNAME_MAX_SYSNAME_LENGTH  16
  30. #define UTSNAME_MAX_RELEASE_LENGTH  16
  31. #define UTSNAME_MAX_VERSION_LENGTH  32
  32. #define UTSNAME_MAX_MACHINE_LENGTH  16
  33.  
  34. struct utsname {
  35.   char sysname[UTSNAME_MAX_SYSNAME_LENGTH];
  36.   char nodename[NETWORK_MAX_HOSTNAMELENGTH];
  37.   char release[UTSNAME_MAX_RELEASE_LENGTH];
  38.   char version[UTSNAME_MAX_VERSION_LENGTH];
  39.   char machine[UTSNAME_MAX_MACHINE_LENGTH];
  40.   char domainname[NETWORK_MAX_DOMAINNAMELENGTH];
  41.  
  42. };
  43.  
  44. #define _UTSNAME_H
  45. #endif
  46.